package com.louis.mango.backup;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author xiashi
 * @date 7/28/2020 22:40
 */
public class Test {
    public int[] runningSum(int[] nums) {
        Arrays array=new Arrays();
        List arrays = new ArrayList<>();
        int num =0;
        for(int i=0;i<nums.length-1;i++){
            num+=nums[i]
            arrays.add(num);
        }
        return arrays=arrays.toArray();
    }
}
